import 'package:flutter/material.dart';
import 'package:moose_app/ui/values/values.dart';

class ATHOrDivider extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.symmetric(vertical: kSize20, horizontal: kSize20),
      child: Row(
        children: <Widget>[
          _buildDivider(),
          Padding(
            padding: EdgeInsets.symmetric(horizontal: kSize24),
            child: Text(
              'OR',
              style: TextStyle(
                color: kColorPrimary,
                fontWeight: FontWeight.w600,
              ),
            ),
          ),
          _buildDivider(),
        ],
      ),
    );
  }

  Widget _buildDivider() {
    return Expanded(
      child: Divider(
        color: kColorPrimary,
        height: kSize2,
      ),
    );
  }
}
